package com.shadow.demo.dictionary.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shadow.demo.dictionary.entity.DicItemEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DicItemMapper extends BaseMapper<DicItemEntity> {

    @Select("select max(F_SORT_NO) from DC_DIC_ITEM where FK_DIC_ID = ${dicId}")
    Integer getMaxDicItemSortNo(@Param("dicId") String dicId);
}
